package com.djl.seckilldemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: seckill-demo
 * @description:
 * @author: Mr.dai
 * @create: 2021-10-13 00:51
 **/
@Controller
@RequestMapping("/demo")
public class DemoController {
    /**
     *
     * @param model
     * @return
     */
    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("name","xxxx");
        return "hello";
    }

}
